<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="../vue.js"></script>
  </head>
  <body>
    <div id="app">
      <form action="#" method="get">
        <input type="text" name="user" v-model.trim="text" />
        <hr />
        <textarea name="" id="" cols="30" rows="10" v-model="text">
12124545</textarea
        >
        <hr />
        <input type="checkbox" name="biye" v-model="isBiye" />
        <hr />
        <input type="radio" name="gender" value="nan" v-model="gender" />
        <input type="radio" name="gender" value="nv" v-model="gender" />
        <hr />
        <input type="checkbox" name="fav" value="苹果" v-model="fav" />
        <input type="checkbox" name="fav" value="橘子" v-model="fav" />
        <input type="checkbox" name="fav" value="葡萄" v-model="fav" />

        <hr />
        <select name="" id="" v-model="car">
          <option value="bmw">bmw</option>
          <option value="benz">benz</option>
          <option value="qq">qq</option>
        </select>

        <hr />

        <input type="submit" value="tbtn" />
      </form>
    </div>

    <script>
      var app = new Vue({
        el: "#app",
        data: {
          text: "123",
          isBiye: true,
          gender: "nv",
          fav: [],
          car: "",
        },
      });
    </script>
  </body>
</html>
